{% extends "layout.html" %}
{% block title %}Issues{% endblock %}
{% block body %}
  <h2>Issues</h2>
  {% if error %}<div class=error><strong>Error:</strong> {{ error }}</div>{% endif %}
  <a href="{{ url_for('add_issue') }}">Add issue</a><br>
  {% for issue in issues %}
    <strong><a href="{{ url_for('issue_id', id=issue.id) }}">#{{ issue.id }}&nbsp;{{ issue.title|safe }}</a></strong>&nbsp;{{ issue.state}}<br>
  {% endfor %}
{% endblock %}